package com.lipaluma.field.merge;

import com.lipaluma.annotations.merge.Id;

/**
 * Enum of different strategies for grouping rows
 * @author mario.soares
 */
public enum MergingStrategy {
	/**
	 * Group objects mapped with columns specified as a {@link ColumnId} and registered as an id : 
	 * <ul>
	 * <li>by annotation : use {@link Id}</li>
	 * <li>by xml : add attribute id in element column</li>
	 * <li>by the builder by the calling method {@link Mapper.Builder.asColumnId()}</li>
	 * </ul>
	 */
	BY_ID, 
	/**
	 * Groups objects mapped by overloading the equals and hascode methods
	 */
	BY_EQUALS
}
